package com.ustc.mvc.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.ustc.mvc.form.ActionForm;
import com.ustc.mvc.form.LoginForm;

public class LoginAction implements Action {

	

	@Override
	public String excute(HttpServletRequest request,
			ActionForm form, Map<String, String> forward) {
		LoginForm loginform = (LoginForm)form;
		if(loginform.getName().equals("yaorun")){
			return forward.get("success");
		}else{
			return forward.get("fail");
		}
	}

}
